'''
Author: LHY 2601958675@qq.com
Date: 2023-06-28 18:04:20
LastEditors: LHY
LastEditTime: 2023-06-28 18:37:40
Description: get请求
'''
import requests
import json
url = 'https://m.douban.com/rexxar/api/v2/movie/recommend'
#refresh=0&start=0&count=20&selected_categories=%7B%22%E7%B1%BB%E5%9E%8B%22:%22%E7%88%B1%E6%83%85%22%7D&uncollect=false&tags=%E7%88%B1%E6%83%85
data = {
    "refresh": "0",
"start": "0",
"count": "20",
"selected_categories": str({"类型":"爱情"}),
"uncollect": 0,
"tags": "爱情",
}
heardes = {"User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36"}
res = requests.get(url=url,params=data,headers=heardes)
print(res.request.url)
print(res.json())
